module.exports = app => {
  app.get('/api/news', (req, res) => {
    res.send({
      code: 0,
      msg: 'ok',
      data: [
        { id: 1000, title: '新闻1' },
        { id: 2000, title: '新闻2' },
        { id: 3000, title: '新闻3' }
      ]
    })
  })
}
